<template>
  <div id="BasicLayout">
    <a-layout style="min-height: 100vh">
      <a-layout-header class="header">
        <GlobalHeader />
      </a-layout-header>
      <a-layout-content class="content">
        <router-view />
      </a-layout-content>
      <a-layout-footer class="footer">
        <div>
          OJ在线判题系统
          <a style="olor: rgba(0, 0, 0, 0.88); margin-right: 4px">
            <icon-copyright :size="16" />
          </a>
          <a style="color: rgba(0, 0, 0, 0.88)">2024 Yang</a>
          <a href="https://gitee.com/young-study" target="_blank">
            <icon-book :size="14" />
          </a>
        </div>
      </a-layout-footer>
    </a-layout>
  </div>
</template>

<style scoped>
#BasicLayout .header {
  /*background: red;*/
  box-shadow: #eee 1px 1px 5px;
}

#BasicLayout .content {
  background: linear-gradient(to right, #dffdfe, #fff);
  margin-bottom: 16px;
  padding: 20px;
}

#BasicLayout .footer {
  background: #efefef;
  padding: 16px;
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
}
</style>
<script setup lang="ts">
import GlobalHeader from "@/components/GlobalHeader.vue";
</script>
